package model

import (
	"time"

	"github.com/jinzhu/gorm"
)

//HoliDate 节假日struct
type HoliDate struct {
	gorm.Model
	DateTime    time.Time `json:"dateTime" time_format:"2006-01-02" time_utc:"8"`
	Weekday     int       `gorm:"column:weekday" json:"weekday"`
	Year        int       `json:"year"`
	Month       int       `json:"month"`
	Day         int       `json:"day"`
	Holiday     bool      `json:"holiday"`
	HolidayName string    `json:"holidayName"`
	HolidayType int       `json:"holidayType"`
}

//TableName 设置表名
func (HoliDate) TableName() string {
	return "holi_date"
}
